﻿.menu {
    height: calc(100% - 40px);
    width: 120px;
    position: absolute;
    float: left;
    overflow: auto;
    scrollbar-arrow-color: purple;
    scrollbar-base-color: #1b9bff;
    scrollbar-face-color: #1b9bff;
    background-color: #36aae7; /*beige;*/
}

.menu ul li a:hover {
    color: #eeeeee;
    background: #1fa0e4;
}

.menu,
.menu ul,
.menu ul li,
.menu ul li a {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    line-height: 1;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.menu {
    width: 150px;
    font-family: 'Segoe UI';
    color: #ffffff;
    border-right: 1px solid #1682ba;
}

.menu ul ul {
    display: none;
}

.align-right {
    float: right;
}

.menu > ul > li > a {
    padding: 15px 10px;
    padding-right: 20px;
    border-top: 1px solid #1682ba;
    cursor: pointer;
    z-index: 2;
    font-size: 14px;
    text-decoration: none;
    color: #ffffff;
    background: #36aae7;
}

.menu > ul > li > a:hover,
.menu > ul > li.open > a {
    color: #eeeeee;
    background: #1fa0e4;
}

.menu > ul > li:first-child > a {
    border-top: none;
}

.menu > ul > li:last-child > a,
.menu > ul > li.last > a {
    border-bottom: 1px solid #1682ba;
}

.holder {
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    right: 0;
}

.holder::after,
.holder::before {
    display: block;
    position: absolute;
    content: "";
    width: 6px;
    height: 6px;
    right: 10px;
    z-index: 10;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);

    -webkit-transition: -webkit-transform 400ms;
    -moz-transition: -moz-transform 400ms;
    -o-transition: -o-transform 400ms;
    transition: transform 400ms;
}
.notransition::after,
.notransition::before {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

.holder::after {
    top: 17px;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
}

.menu > ul > li > a:hover > span::after,
.menu > ul > li.active > a > span::after,
.menu > ul > li.open > a > span::after {
    border-color: #eeeeee;
}

.holder::before {
    top: 18px;
    border-top: 1px solid;
    border-left: 1px solid;
    border-top-color: inherit;
    border-left-color: inherit;
}

.menu > ul > li.open > a > .holder::after,
.menu > ul > li.open > a > .holder::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}


/* Sous menu */

.menu ul ul li a {
    cursor: pointer;
    border-bottom: 1px solid #32373e;
    padding: 10px 20px;
    z-index: 1;
    text-decoration: none;
    font-size: 13px;
    color: #eeeeee;
    background: #49505a;
}

.menu ul ul li:hover > a,
.menu ul ul li.open > a,
.menu ul ul li.active > a {
    background: #424852;
    color: #ffffff;
}

.menu ul ul ul li a {
    padding-left: 30px;
}

.menu > ul > li > ul > li:last-child > a,
.menu > ul > li > ul > li.last > a {
    border-bottom: 0;
}

.menu > ul > li > ul > li.open:last-child > a,
.menu > ul > li > ul > li.last.open > a {
    border-bottom: 1px solid #32373e;
}

.menu > ul > li > ul > li.open:last-child > ul > li:last-child > a {
    border-bottom: 0;
}

.menu ul ul li.has-sub > a::after {
    display: block;
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    right: 20px;
    z-index: 10;
    top: 11.5px;
    border-top: 2px solid #eeeeee;
    border-left: 2px solid #eeeeee;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.menu ul ul li.active > a::after,
.menu ul ul li.open > a::after,
.menu ul ul li > a:hover::after {
    border-color: #ffffff;
}







/*.menu {
    height: calc(100% - 40px);
    width: 120px;
    position: absolute;
    float: left;
    overflow: auto;
    scrollbar-arrow-color: purple;
    scrollbar-base-color: #1b9bff;
    scrollbar-face-color: #1b9bff;
}

.menu ul li a:hover {
    color: red;
}

.menu,
.menu ul,
.menu ul li,
.menu ul li a {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    line-height: 1;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.menu {
    width: 150px;
    font-family: 'Segoe UI';
    color: #ffffff;
}

    .menu ul ul {
        display: none;
    }

.align-right {
    float: right;
}

.menu > ul > li > a {
    padding: 15px 20px;
    border-left: 1px solid #1682ba;
    border-right: 1px solid #1682ba;
    border-top: 1px solid #1682ba;
    cursor: pointer;
    z-index: 2;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
    background: #36aae7;
    background: -webkit-linear-gradient(#36aae7, #1fa0e4);
    background: -moz-linear-gradient(#36aae7, #1fa0e4);
    background: -o-linear-gradient(#36aae7, #1fa0e4);
    background: -ms-linear-gradient(#36aae7, #1fa0e4);
    background: linear-gradient(#36aae7, #1fa0e4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

    .menu > ul > li > a:hover,
    .menu > ul > li.active > a,
    .menu > ul > li.open > a {
        color: #eeeeee;
        background: #1fa0e4;
        background: -webkit-linear-gradient(#1fa0e4, #1992d1);
        background: -moz-linear-gradient(#1fa0e4, #1992d1);
        background: -o-linear-gradient(#1fa0e4, #1992d1);
        background: -ms-linear-gradient(#1fa0e4, #1992d1);
        background: linear-gradient(#1fa0e4, #1992d1);
    }

.menu > ul > li.open > a {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid #1682ba;
}

.menu > ul > li:last-child > a,
.menu > ul > li.last > a {
    border-bottom: 1px solid #1682ba;
}

.holder {
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    right: 0;
}

    .holder::after,
    .holder::before {
        display: block;
        position: absolute;
        content: "";
        width: 6px;
        height: 6px;
        right: 20px;
        z-index: 10;
        -webkit-transform: rotate(-135deg);
        -moz-transform: rotate(-135deg);
        -ms-transform: rotate(-135deg);
        -o-transform: rotate(-135deg);
        transform: rotate(-135deg);
    }

    .holder::after {
        top: 17px;
        border-top: 2px solid #ffffff;
        border-left: 2px solid #ffffff;
    }

.menu > ul > li > a:hover > span::after,
.menu > ul > li.active > a > span::after,
.menu > ul > li.open > a > span::after {
    border-color: #eeeeee;
}

.holder::before {
    top: 18px;
    border-top: 2px solid;
    border-left: 2px solid;
    border-top-color: inherit;
    border-left-color: inherit;
}

.menu ul ul li a {
    cursor: pointer;
    border-bottom: 1px solid #32373e;
    border-left: 1px solid #32373e;
    border-right: 1px solid #32373e;
    padding: 10px 20px;
    z-index: 1;
    text-decoration: none;
    font-size: 13px;
    color: #eeeeee;
    background: #49505a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.menu ul ul li:hover > a,
.menu ul ul li.open > a,
.menu ul ul li.active > a {
    background: #424852;
    color: #ffffff;
}

.menu ul ul li:first-child > a {
    box-shadow: none;
}

.menu ul ul ul li:first-child > a {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.menu ul ul ul li a {
    padding-left: 30px;
}

.menu > ul > li > ul > li:last-child > a,
.menu > ul > li > ul > li.last > a {
    border-bottom: 0;
}

.menu > ul > li > ul > li.open:last-child > a,
.menu > ul > li > ul > li.last.open > a {
    border-bottom: 1px solid #32373e;
}

.menu > ul > li > ul > li.open:last-child > ul > li:last-child > a {
    border-bottom: 0;
}

.menu ul ul li.has-sub > a::after {
    display: block;
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    right: 20px;
    z-index: 10;
    top: 11.5px;
    border-top: 2px solid #eeeeee;
    border-left: 2px solid #eeeeee;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.menu ul ul li.active > a::after,
.menu ul ul li.open > a::after,
.menu ul ul li > a:hover::after {
    border-color: #ffffff;
}*/
